namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Events.SystemEvents
{
    public class EchoEvent : AciEventBase
    {
        public const byte OpCode = 0x82;
 
        public byte[] Message { get; set; }

        protected override void DecodeFromBuffer()
        {
            var messageLen = DecodeHelper.BufferLength - 1;
            Message = DecodeHelper.GetBytes(messageLen);
        }
    }
}
